<template>
  <div>
    <h1>This is a test page</h1>
    <Button @click="test">测试请求</Button>
    <p v-role="['admin', 'user']">权限可见标签</p>
    <br />
    <DatePicker type="daterange" placement="bottom-end" placeholder="请选择时间" style="width: 300px" @on-change="handleDate"></DatePicker>
  </div>
</template>

<script>
export default {
  methods: {
    test() {},
    handleDate(v) {
      console.log(v)
      const date = this.$dayjs(v[0]).format('YYYY-MM-DD HH:mm:ss')
      console.log('-> date', date)
    },
  },
}
</script>
